/**********************************************************************
 Copyright (C) 2009 Jaakko Vuori

 This file is part of Cimer.
 For more information, see <http://code.google.com/p/cimer/>

 Cimer is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 Cimer is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with Cimer.  If not, see <http://www.gnu.org/licenses/>.
 **********************************************************************/

#include "feedbackplayer.h"
#include <QDebug>

#ifdef FEEDBACK_EFFECTS
#include <QFeedbackEffect>

QTM_USE_NAMESPACE
#endif //FEEDBACK_EFFECTS


FeedbackPlayer::FeedbackPlayer(QObject *parent) :
    QObject(parent)
{
}

void FeedbackPlayer::playPressEffect()
{
    qDebug() << "FeedbackPlayer::playPressEffect())";
#ifdef FEEDBACK_EFFECTS
    QFeedbackEffect::playThemeEffect(QFeedbackEffect::ThemeItemPick);
#endif //FEEDBACK_EFFECTS
}

void FeedbackPlayer::playReleaseEffect()
{
    qDebug() << "FeedbackPlayer::playReleaseEffect()";
#ifdef FEEDBACK_EFFECTS
    QFeedbackEffect::playThemeEffect(QFeedbackEffect::ThemeItemDrop);
#endif //FEEDBACK_EFFECTS
}

void FeedbackPlayer::playDragEffect()
{
    qDebug() << "FeedbackPlayer::playDragEffect())";
#ifdef FEEDBACK_EFFECTS
    QFeedbackEffect::playThemeEffect(QFeedbackEffect::ThemeItemMoveOver);
#endif //FEEDBACK_EFFECTS
}

